<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link href="/resource/css/admin/main.css" type="text/css" rel="stylesheet" />
<link href="/resource/css/admin/right.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="/resource/js/jquery.js"></script>
<script type="text/javascript" src="/resource/js/base.js"></script>
<script type="text/javascript" src="/resource/js/admin/checknodeedit.js"></script>
</head>
<body>
	<div class="position"><span>您的当前位置：</span>系统设置 > <a href="../checkflow/">审核流程管理</a> > <a href="./?id=${checkflow.id}">管理流程节点</a> > ${(checknode.id == 0)?string("新建","修改")}审核流程</div>
	<form method="post" action="editdo" onsubmit="return checkform()">
		<div class="rightbody m">
			<div class="rightbodycontent">
				<table cellspacing="1" cellpadding="4" class="tableedit">
					<tr>
						<td>节点名称：</td>
						<td>
							<input type="text" name="name" id="name" value="${checknode.name!}" /> <span style="color:red">*</span>
						</td>
					</tr>
					<tr>
						<td>参与人员：</td>
						<td>
							<#list departments as department>
								${department.name}：
								<#list department.admins?sort_by("sort") as admin>
									<label><input type="checkbox" name="adminids" value="${admin.id}"<#if adminids?seq_contains(admin.id)> checked</#if> />${admin.name}</label>
								</#list>
		                        <hr class="dashedstyle" />
							</#list>
						</td>
					</tr>
					<#if checknode.id == 0 || checknode.checknodeType?? && checknode.checknodeType.id == 2>
						<tr>
			                <td>多人审核方式：</td>
			                <td>
			                    <label><input type="radio" name="singleaudit" value="true"<#if !checknode.singleaudit?? || checknode.singleaudit> checked</#if> />单审</label>
			                    <label><input type="radio" name="singleaudit" value="false"<#if checknode.singleaudit?? && !checknode.singleaudit> checked</#if> />会审</label>
			                </td>
			            </tr>
			            <tr>
			                <td>文档修改权限：</td>
			                <td>
			                    <label><input type="radio" name="canedit" value="true"<#if !checknode.canedit?? || checknode.canedit> checked</#if> />有</label>
			                    <label><input type="radio" name="canedit" value="false"<#if checknode.canedit?? && !checknode.canedit> checked</#if> />没有</label>
			                </td>
			            </tr>
		                   <tr>
			                <td>是否按部门分组：</td>
			                <td>
			                    <label><input type="radio" name="groupbyDepart" value="true"<#if !checknode.groupbydepart?? || checknode.groupbydepart> checked</#if> />是</label>
			                    <label><input type="radio" name="groupbyDepart" value="false"<#if checknode.groupbydepart?? && !checknode.groupbydepart> checked</#if> />否</label>
			                </td>
			            </tr>
					</#if>
				</table>
				<input type="hidden" name="checknodeid" value="${checknode.id}" />
				<input type="hidden" name="checkflowid" value="${checkflow.id}" />
			</div>
		</div>
		<div class="rightfoot">
			<div class="rightfootcontent">
				<input type="button" value="返 回" class="return" onclick="history.back()" />&nbsp;
	            <input type="submit" value="保 存" class="save" />
            </div>
        </div>
	</form>
</body>
</html>